package com.ruoyi.project.business.domain.strategy;

import com.ruoyi.project.business.domain.rules.Rule;
import com.ruoyi.project.business.domain.rules.month.AskLeaveDaysRule;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

public class PageClickAssignStrategy {

    @Setter
    private List<Integer> aimDayOfMonths;
    @Setter
    private Long userId;
    @Setter
    private Long tenantId;
    @Setter
    private Integer year;
    @Setter
    private Integer month;

    private List<Rule> globalRules;

    public PageClickAssignStrategy() {
        this.globalRules = new ArrayList<>();
        AskLeaveDaysRule askLeaveDaysRule = new AskLeaveDaysRule();
        askLeaveDaysRule.setAimDayOfMonths(aimDayOfMonths);
        askLeaveDaysRule.setUserId(userId);
        askLeaveDaysRule.setTenantId(tenantId);
        askLeaveDaysRule.setYear(year);
        askLeaveDaysRule.setMonth(month);

        this.globalRules.add(askLeaveDaysRule);
    }

    public void check() {

    }


}
